<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  
</head>
<body>
  <div id="app">
    <common-head></common-head>
  
  </div>
  <script src="./vue.global.js"></script>
  <script>
    const { createApp } = Vue;
    const app = createApp({});
    const CommonHead = {
      // 模板视图
      template: `
        <div>
          <div>
            这是自定义头部标签  
          </div>
          <button>按钮</button>
        </div>
      `,
      
    }
    app.component('CommonHead', CommonHead)

    app.mount('#app')
  </script>
</body>
</html>